.html_title= @html_title
.row
  #my_teaching.col-md-6.col-xs-12
    .block.block-rounded.block-bordered.personal-center-panel
      .block-header
        = ts(:my, :teaching)
        .pull-right
          = link_to t(:more), my_teaching_course_objects_path
      .block-content
        .row
          - @course_objects.each do |course_object|
            = course_object_block_teaching(course_object)

  #my_course.col-md-6.col-xs-12
    .block.block-rounded.block-bordered.personal-center-panel
      .block-header
        = ts(:my, Course::Object)
        .pull-right
          = link_to t(:more), course_learning_records_path
      .block-content
        .row
          - @course_learning_records.each do |course_learning_record|
            = course_object_block_learning(course_learning_record.course_object)

  #tutor_all_course_qualification_rate.col-md-6.col-xs-12
    .block.block-rounded.personal-center-panel
      .block-header
        = ts(:current, :year, :trainee, :qualification, :rate)
      .block-content
        canvas.js-chartjs-pie

  #trainee_period_credit_contrast.col-md-6.col-xs-12
    .block.block-rounded.personal-center-panel
      .block-header
        = ts(:current, :year, :qualified, :period, :credit, :contrast)
      .block-content
        canvas.js-chartjs-bars
javascript:
  DomListener.bind_pie_chat(#{ChartDataService.qualification_rate.to_json.html_safe});
  DomListener.bind_bar_chat(#{ChartDataService.score_bars.to_json.html_safe})